<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // const date = new Date(2020, 2, 3, 12, 20, 20, 200);
      const date = new Date(2020, 2); //(2020, 2,1,0,0,0,0)
      // const date = new Date(2020, 2, 1, 10); //(2020, 2, 1, 10,0,0,0)
      // const date = new Date(2020, 2, 1, 10, 20, 30); //(2020, 2, 1, 10,0,0,0)
      console.log(date.toLocaleString());
      console.log(date.toUTCString());
    </script>
  </body>
</html>
